//
//  UILabel+Attribute.m
//  WisdomStar
//
//  Created by 谭飞 on 2018/10/22.
//  Copyright © 2018年 zhangliwen. All rights reserved.
//

#import "UILabel+Attribute.h"

@implementation UILabel (Attribute)

- (void)addAttributeText:(NSString *)text attrs:(NSDictionary<NSAttributedStringKey,id> *)attrs range:(NSRange)range {
    NSMutableAttributedString *mattributeStr = [[NSMutableAttributedString alloc] initWithString:text];
    [mattributeStr addAttributes:attrs range:range];
    self.attributedText = mattributeStr;
}

@end
